<include file="Public:headersmall"/>
<style>
.center{width:1000px;margin:0 auto;margin-top:10px}
.left{width:160px;border:1px solid #dddddd;float:left;}
.main{width:830px;float:right;}
.title2{display:block;background:#317ee7;color:#fff;text-align:left;font-size:16px;height:25px;line-height:25px}
.left dl{display:block;background:#fff;font-size:13px;height:25px;line-height:25px}
.help{margin-top:5px}

.history{width:820px;float:right}
.ht01{border-left-width:1px;border-right-width:1px;border-top-style:solid;border-top-width:1px;border-bottom-style:solid; border-bottom-width:1px;height:40px;font-size:14px;font-weight:bold;background:#e8eff7;border-color:#dddddd}
.ht02{border-left-width:1px; border-right-width:1px;border-top-width:1px;border-bottom-style:solid; border-bottom-width:1px;height:30px;border-color:#dddddd}
#list:hover{background:#e8eff7}

.index_page{width:840px;margin:0 auto;float:right;margin-top:10px;color:#0066CC;cursor:pointer;}
.page{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC;cursor:pointer;}
.page:hover{color:#0066CC}
.page_current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;}
</style>
<div class="center">您的位置：<a href="__APP__">首页</a>-><a href="__GROUP__/Member"><font color="#317ee7">会员中心</font></a></div>
<div class="center">
   <div class="left">
      <include file="left"/>
   </div>

   <div class="main">
	   <div class="history">
	     <table border="0" width="100%" id="table1">
			<tr>
				<td class="ht01" width="200px" align="center">优惠券号</td>
				<td class="ht01" width="100px" align="center">金额</td>
				<td class="ht01" align="center">最低限额</td>
				<td class="ht01" align="center">有效期</td>
				<td class="ht01" width="100px" align="center">状态</td>
			</tr>
<volist name="coupons" id="coupons">
			<tr id="list">
				<td class="ht02" align="center" width="200px">{$coupons.passcode}</td>
				<td class="ht02" width="100px" align="center">{$coupons.cou_amount}</td>
				<td class="ht02" align="center">{$coupons.min_money}</td>
				<td class="ht02" align="center">
<if condition="$coupons.end_time lt time()">已过期
<elseif condition="$coupons.begin_time gt time()"/>{$coupons.begin_time|date="Y/m/d H:i",###}开始
<else/>{$coupons.end_time|date="Y/m/d H:i",###}前
</if>
				</td>
				<td class="ht02" width="100px" align="center"><if condition="$coupons.status eq 'used'"><font color="red">已使用</font><else/><font color="green">未使用</font></if></td>
			</tr>
</volist>
		</table>
	   </div>

	   <div class="index_page"><div style="width:600px;margin:0 auto;float:right">{$page}</div></div>
   </div>


</div>

<div style="clear:both"></div>
<br>
<include file="Public:footersmall"/>